package cn.itqiqi.Bean;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author kevin_琪琪
 * @version 1.0
 * @description
 * @date 2022-06-08 22:31
 */
@Setter
@Getter
@AllArgsConstructor
@ToString
public class Order {

    public Order() {
        System.out.println("第一步 执行无参构造器创建bean方法");
    }

    private String oname;

    public void setOname(String oname) {
        this.oname = oname;
        System.out.println("第二步 调用set方法设置属性值");
    }

    public void initMethod() {
        System.out.println("第三步 执行初始化的方法");
    }

    public void destroyMethod() {
        System.out.println("第五步 执行销毁的方法");
    }

}
